<script type="text/javascript" src="javascripts/prototype.js"></script>
<script type="text/javascript" src="javascripts/effects.js"></script>
<script type="text/javascript" src="javascripts/dragdrop.js"></script>

<div id="wrapper">
<div id="wrapper-btm">
<div id="page">

	<div id="content">
		<div id="banner">&nbsp;</div>
			<h1>Listing dinnermoments</h1>
	
			<!-- creating draggable items to sign users in -->
			<% @users.each do |user| %>
	
				<%= render :partial => 'user', :object => user %>
	
			<% end %>
	
	
			<table>
			  <tr>
			    <th>Date</th>
			    <th>Cost</th>
			    <th>Eaters</th>
			  </tr>
	  
			<% @dinnermoments.each do |dinnermoment| %>
			<tr>
					<td><%= link_to dinnermoment.date, edit_dinnermoment_path(dinnermoment) %></td>
					<td><%=h dinnermoment.cost %></td>
					<%= render :partial => dinnermoment %>
				</tr>
		
			<% end %>	
			</table>
		</div>
	</div>
	<div id="sidebar">
		<p>
			<%= link_to 'New dinnermoment', new_dinnermoment_path %>
		<p>
			<%= link_to "Kosten overzicht", cost_overview_index_path %>
		<p>
			<%= link_to "Kok toewijzen", eaters_path%>
	</div>
	<div style="clear: both;">&nbsp;</div>
</div>
</div>
</div>

<br />
